package com.wardrobe.mapper.slave.booking_order;

import com.wardrobe.domain.booking_order.BookingOrderShowBean;
import com.wardrobe.soa.backend.booking_order.BackBookingOrderFromBean;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by Administrator on 2018/11/20.
 */
@Component("bookingOrderSlaveMapper")
public interface BookingOrderSlaveMapper {

    BookingOrderShowBean selectBookingOrderById(long id);

    BookingOrderShowBean selectBookingOrderByOrderId(long orderId);

    List<BookingOrderShowBean> selectBookingOrder(@Param("userId")long userId,@Param("status") int status);

    List<BookingOrderShowBean> selectBookingOrderList(BackBookingOrderFromBean fromBean);

    long countBookingOrder(BackBookingOrderFromBean fromBean);
}
